import Vue from 'vue';
import {
  Button,
  Row,
  Col,
  Icon,
  DropdownMenu,
  Dropdown,
  DropdownItem,
  Message,
  MessageBox,
  Form,
  FormItem,
  Input,
  Option,
  Dialog,
  Select
} from 'element-ui';
import VueAwesomeSwiper from 'vue-awesome-swiper'
import VueLazyload from 'vue-lazyload'
import VueCookies from 'vue-cookies'
import QRCode from 'qrcode'
import 'element-ui/lib/theme-chalk/index.css';
import 'swiper/dist/css/swiper.css'

Vue.use(VueCookies)
Vue.use(VueAwesomeSwiper)
Vue.use(VueLazyload, {
  error: '',
  loading: '/imgs/loading-svg/loading-bars.svg'
})
Vue.use(Button)
Vue.use(Row).use(Col).use(Icon).use(Dropdown).use(DropdownMenu).use(DropdownItem).use(Form).use(FormItem).use(Input).use(Option).use(Dialog).use(Select)
Vue.prototype.$message = Message;
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.QRCode = QRCode
